package com.haiqi.modules.map.web;

import com.haiqi.common.annotation.SafeAuthority;
import com.haiqi.common.persistence.entity.ServerType;
import com.haiqi.modules.map.service.ServerTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created by liuxiayan on 2017/4/26.
 */
@RequestMapping("/manage/map/type")
@Controller
@SafeAuthority(menuCode = "monitorLocation,companyMonitorLocation")
public class ServerTypeController {
    @Autowired
    private ServerTypeService serverTypeService;
    @ResponseBody
    @RequestMapping("/selecttype")
    public List<ServerType> selecttype() {
        List<ServerType> typeList =  serverTypeService.selecttype();
        return typeList;
    }

}
